package examples.jsf.lifecycle.impl;

import examples.jsf.FacesException;
import examples.jsf.context.FacesContext;
import examples.jsf.event.PhaseId;

/**
 * @author Bill
 * @version 2013-05-29
 */
public class RenderResponsePhase extends Phase {
    @Override
    public void execute(FacesContext context) throws FacesException {
        // ViewHandler vh = facesContext.getApplication().getViewHandler();

        // publish PreRenderViewEvent to application
        // facesContext.getApplication().publishEvent(facesContext,
        //        PreRenderViewEvent.class,
        //        facesContext.getViewRoot());

        // render the view
        // vh.renderView(facesContext, facesContext.getViewRoot());
    }

    @Override
    public PhaseId getId() {
        return PhaseId.RENDER_RESPONSE;
    }
}
